import os
from  toolsSrc.status.status import Status
from pitchSrc.pitchHis.initData import initData
from pitchSrc.pitchHis.cleanProcess import cleanProcess
from pitchSrc.pitchHis.groupProcess import groupProcess
from pitchSrc.pitchHis.smoothProcess import smoothProcess
from pitchSrc.pitchHis.surfaceProcess import surfaceProcess
from pitchSrc.pitchHis.regressProcess import regressProcess
from pitchSrc.pitchHis.lineRegressProcess import lineRegressProcess
from pitchSrc.pitchHis.copyHis2Onl import copyHis2Onl

@Status.changeDBStatus('pitch',3,1)
@Status.changeStatus(3,1)
def pitchHis():

    initData()
    cleanProcess()
    groupProcess()
    smoothProcess()
    surfaceProcess()
    # regressProcess()
    lineRegressProcess()
    copyHis2Onl()

if __name__ == '__main__':
    pitchHis()
